import java.text.DecimalFormat;


public class NumberTest {
	public static void main(String[] args){
		System.out.println(new DecimalFormat("#.##").format(123.3));
		System.out.println(new DecimalFormat("#.##").format(123.0));
	}
}
